home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_03 / allison / dhello.c < prev    next >
C/C++ Source or Header  |  1994-01-05  |  342b  |  17 lines

  1.  
  2.  
  3. LISTING 12 - "Hello, World!" with the new C++ digraphs and tokens
  4. /* dhello.c:    Greeting program using C++ digraphs */
  5. #include <stdio.h>
  6.  
  7. main(int argc, char *argv<::>)
  8. <%
  9.     if (argc > 1 and argv<:0:> != NULL)
  10.         printf("Hello, %s!??/n",argv<:1:>);
  11.     else
  12.         printf("Hello, world!??/n");
  13.     return 0;
  14. %>
  15.  
  16.  
  17.